﻿using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;

public class Level
{
	// csv fields
	public int ID;
	public string IconTexturePath; // Icon Sprite Path
	public string StageTexturePath; // Stage Texture Path
	public int UnlockCount;
	public List<int> MonsterIDs;

	// real-time fields
	public List<Monster> Monsters;

	public void Initialize(MonstersConfig monstersConfig)
	{
		Monsters = new List<Monster>(MonsterIDs.Count);
		for (int i = 0; i < MonsterIDs.Count; i++)
		{
			int monsterID = MonsterIDs[i];

			Monster monster = monstersConfig.Monsters[monsterID-1].Clone() as Monster;
			Monsters.Add(monster);
		}
	}
}
